package top.purity.server.gateway.feign.input;

import top.purity.framework.common.GlobalConstant;
import top.purity.server.gateway.feign.input.dto.PermissionDTO;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * @Author lmh
 * @Description
 * @CreateTime 2023-09-25 17:57
 */

@FeignClient(value = "tenant", contextId = "tenant", path = "/tenant")
public interface TenantFeign {

    String PREFIX = GlobalConstant.RPC_PREFIX + "/tenant";

    @PostMapping(PREFIX + "/getMenuByPath")
    PermissionDTO getMenuByPath(@RequestParam("path") String path);

}
